﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.PB;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.PB
{
    public partial interface IPB_ProcecureSubBusiness
    {
        Task<PageResult<PB_ProcecureSub>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<List<PB_ProcecureSubDTO>> GetDataListAsyncs(string parentid);
        Task<PageResult<PB_ProcecureSubDTO>> GetDataListAsyncsok(PageInput<ConditionDTO> input, string parentid);
        //Task<PageResult<PB_WorkshopDTO>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<PB_ProcecureSub> GetTheDataAsync(string id);
        Task AddDataAsync(PB_ProcecureSub data);
        Task UpdateDataAsync(PB_ProcecureSub data);
        Task DeleteDataAsync(List<string> ids);
        Task<List<PB_ProcecureSub>> GetDatalist(string DeptId);
        //同过工艺id查找工序
        Task<List<PB_ProcecureListDto>> GetDataListByDepartment(string Deptid);

        Task<List<ProcecureSubTreeDTO>> GetTreeSubListAsyncs();
        /// <summary>
        /// 获取今天派工的工序
        /// </summary>
        /// <returns></returns>
        Task<List<RapidqualitySubDays>> GetRapidqualitySubDaysList();
        Task<PageResult<WorkReportWorklist>> GetWorkReportWorklist(PageInput<WorkReportWorkSearch> input);
        Task BatchSave_Statistics(BatchSave_Statistics Data);
        Task<List<PB_ProcecureSub>> GeFinishe();

        Task<PageResult<ProceduredaySummary>> GetProceduredaySummary(PageInput<IT_LocalDetailDtolistContionDTO> input);

        Task<PageResult<SprayList>> GetSprayList(PageInput<IT_LocalDetailDtolistContionDTO> input);
    }

}